#pragma once

#ifndef YETIDISTANCEDECISION_H
#define YETIDISTANCEDECISION_H

#include "Decision.h"
#include "YetiEnemy.h"

class YetiDistanceDecision : public Decision<YetiEnemy>
{
private:
	float distance;
protected:
	DecisionTreeNode<YetiEnemy>* getBranch(YetiEnemy* owner);
public:
	YetiDistanceDecision(float distance, DecisionTreeNode<YetiEnemy>* trueNode, DecisionTreeNode<YetiEnemy>* falseNode)
		: Decision<YetiEnemy>(trueNode, falseNode), distance(distance) { }
	virtual ~YetiDistanceDecision() { }
};

#endif